<?php

namespace app\user\controller;
use app\common\controller\UserBase;


class Recovery extends UserBase
{
    protected function _initialize()
    {
        parent::_initialize();
        !config('website_status') && die(config('colse_explain'));
        $config = cache('db_config_data');
        if (!$config) {
            $config = [];
            foreach (model('config')->select() as $v) {
                $config[$v['group']][$v['name']] = $v['value'];
            }
            cache('db_config_data', $config);
        }
        config($config);
    }
    
    //参数设置
    public function index()
    {
        $list = model('customer')->order('delete_time desc,id desc')->where("delete_time > 0")->paginate(config('page_number'));
        return $this->fetch(is_Client('index'), ['list' => $list]);
    }
    

    
}
